
package com.epam.edu.task03.dances;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for SceneType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="SceneType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="assembly hall"/>
 *     &lt;enumeration value="outdoor area"/>
 *     &lt;enumeration value="studio"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "SceneType", namespace = "Dance")
@XmlEnum
public enum SceneType {

    @XmlEnumValue("assembly hall")
    ASSEMBLY_HALL("assembly hall"),
    @XmlEnumValue("outdoor area")
    OUTDOOR_AREA("outdoor area"),
    @XmlEnumValue("studio")
    STUDIO("studio");
    private final String value;

    SceneType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static SceneType fromValue(String v) {
        for (SceneType c: SceneType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
